<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<form
	action="${pageContext.request.contextPath}${requestScope.requestPath}"
	method="POST">
	总共${requestScope.pageInfo.recordCount}页&nbsp;&nbsp;
	第${requestScope.pageInfo.currentPage}/${requestScope.pageInfo.pageCount}页&nbsp;&nbsp;
	<c:if test="${requestScope.beforeArrow==1}">
		<a
			href="${pageContext.request.contextPath}${requestScope.requestPath}&pageNum=${requestScope.beforePartFirstPageNum}">&lt;&lt;</a>
	</c:if>
	<c:if test="${requestScope.beforePage==1}">
		<a
			href="${pageContext.request.contextPath}${requestScope.requestPath}&pageNum=${requestScope.pageInfo.currentPage - 1}">上一页</a>
	</c:if>
	<c:forEach items="${requestScope.pageNumList}" var="pageNum">
		<c:if test="${pageNum != requestScope.pageInfo.currentPage}">
			<a
				href="${pageContext.request.contextPath}${requestScope.requestPath}&pageNum=${pageNum}">${pageNum}</a>
		</c:if>
		<c:if test="${pageNum == requestScope.pageInfo.currentPage}">
					${pageNum}
		</c:if>
	</c:forEach>
	<c:if test="${requestScope.afterPage==1}">
		<a
			href="${pageContext.request.contextPath}${requestScope.requestPath}&pageNum=${requestScope.pageInfo.currentPage + 1}">下一页</a>
	</c:if>
	<c:if test="${requestScope.afterArrow==1}">
		<a
			href="${pageContext.request.contextPath}${requestScope.requestPath}&pageNum=${requestScope.afterPartFirstPageNum}">&gt;&gt;</a>
	</c:if>
	<input type="text" name="pageNum" style="width: 19px">
	<input type="submit" value="GO">
</form>